<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/taglibs.jsp"%>
<!doctype html>
<html>
<head>
    <meta charset="UTF-8">  
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link href="${ctx}/resources/semanticui/semantic.min.css" rel="stylesheet" type="text/css" />
    <link href="${ctx}/resources/trend/semantic/dist/components/modal.min.css" 	rel="stylesheet" type="text/css" />
	<link href="${ctx}/resources/trend/semantic/dist/components/icon.min.css"	rel="stylesheet" type="text/css" />
    <link href="${ctx}/resources/apps.css" rel="stylesheet" type="text/css" />
    <script>
	var _hmt = _hmt || [];
	(function() {
	  var hm = document.createElement("script");
	  hm.src = "https://hm.baidu.com/hm.js?63eb239345268c518caa9b38c60bfc89";
	  var s = document.getElementsByTagName("script")[0]; 
	  s.parentNode.insertBefore(hm, s);
	})();
	</script>
    
    <title>我要推荐</title>  
</head>
<body>
<%@include file="/views/modaldialog.jsp"%>
<div class="ui segment" ><input type="hidden" value="${openid}"/>
&nbsp;<br>

   <div class="ui attached header" id="list-title">
      注册医趋势高级会员,获取更多职位信息和推荐奖金
    </div>
   <br/>
     <div class="ui button active dog" align="center" id="reg" >立即注册</div>
     <br/><br/>
   	 <div style="text-align:left;padding-left: 20%;">
   		<div class="ui attached header" style="border: none;"> &nbsp;&nbsp;三步即可获得推荐奖金</div>
				Step1 添加职位顾问为好友<br/>
				Step2 将推荐的候选人信息发给职位顾问<br/>
				Step3 推荐成功即可获得奖金<br/>
	</div><br>
   	 <div class="ui segment" id="qrcode"> 
        <div class="ui small image">
            <img src="${ctx}/resources/images/qrcode.jpg">
        </div>
    </div>
    &nbsp;<br>
	长按上方二维码，添加职位顾问为好友。
</div>

<script src="${ctx}/resources/semanticui/jquery-2.1.4.min.js"></script>
<script src="${ctx}/resources/semanticui/semantic.js" type="text/javascript"></script>
<script type="text/javascript">
 $(document).ready(function(){
    $("#reg").click(function(){
        $.ajax({ 
                url: '/demo/wechat/candidate/main.do', 
                type: "POST", 
                data: {},
                success: function(data) { 
                    console.log(data);
                    if(data.errorcode=="0"){
                       alert(data.msg);
                        window.open('http://www.tiaonali.com/tnl-candidate/wechat/trend/candidate/main.page','_self');
                        
                    }else{
                        window.open('http://www.tiaonali.com/tnl-candidate/wechat/trend/candidate/main.page','_self');
                        
                    } 
                }, 
                
            });
        });
    });
</script>
</body>
</html>